/*
* pps_bom
*/
package com.pitop.mould.api;

import com.pitop.mould.entity.MouldMaterial;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 物料模具关联 api请求熔断器 熔断实现
 *
 * @author berton
 */
@Component
public class MouldMaterialFeignApiImpl implements MouldMaterialFeignApi {
    /**
     * 查询MouldMaterial一个详情信息
     *
     * @param id
     * @param materialCode 物料编码
     * @param mouldCode    模具编码
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial load(@RequestParam("id") Long id, @RequestParam("materialCode") String materialCode, @RequestParam("mouldCode") String mouldCode) {
        return new MouldMaterial();
    }

    /**
     * 查询MouldMaterial一个详情信息,(将查询关联数据)
     *
     * @param id
     * @param materialCode 物料编码
     * @param mouldCode    模具编码
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial get(@RequestParam("id") Long id, @RequestParam("materialCode") String materialCode, @RequestParam("mouldCode") String mouldCode) {
        return new MouldMaterial();
    }


    /**
     * 根据条件id查询MouldMaterial一个详情信息
     *
     * @param id
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial loadById(@RequestParam("id") Long id) {
        return new MouldMaterial();
    }

    /**
     * 根据条件materialCode查询MouldMaterial一个详情信息
     *
     * @param materialCode 物料编码
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial loadByMaterialCode(@RequestParam("materialCode") String materialCode) {
        return new MouldMaterial();
    }

    /**
     * 根据条件mouldCode查询MouldMaterial一个详情信息
     *
     * @param mouldCode 模具编码
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial loadByMouldCode(@RequestParam("mouldCode") String mouldCode) {
        return new MouldMaterial();
    }

    /**
     * 根据条件id查询MouldMaterial一个详情信息,(将查询关联数据)
     *
     * @param id
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial getById(@RequestParam("id") Long id) {
        return new MouldMaterial();
    }

    /**
     * 根据条件materialCode查询MouldMaterial一个详情信息,(将查询关联数据)
     *
     * @param materialCode 物料编码
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial getByMaterialCode(@RequestParam("materialCode") String materialCode) {
        return new MouldMaterial();
    }

    /**
     * 根据条件mouldCode查询MouldMaterial一个详情信息,(将查询关联数据)
     *
     * @param mouldCode 模具编码
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial getByMouldCode(@RequestParam("mouldCode") String mouldCode) {
        return new MouldMaterial();
    }

    /**
     * 查询MouldMaterial信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<MouldMaterial> list(@RequestBody MouldMaterial mouldMaterial, int curPage, int pageSize) {
        return new ArrayList();
    }

    /**
     * 查询MouldMaterial信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<MouldMaterial> listByPk(Long id, String materialCode, String mouldCode, int curPage, int pageSize) {
        return new ArrayList();
    }

    @Override
    public Integer count(@RequestParam("id") Long id, @RequestParam("materialCode") String materialCode, @RequestParam("mouldCode") String mouldCode) {
        return 0;
    }

    @Override
    public Integer count(@RequestBody MouldMaterial mouldMaterial) {
        return 0;
    }

    /**
     * 创建MouldMaterial
     *
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial build(@RequestBody MouldMaterial mouldMaterial) {
        return new MouldMaterial();
    }

    /**
     * 修改MouldMaterial
     *
     * @return MouldMaterial
     */
    @Override
    public MouldMaterial modify(@RequestBody MouldMaterial mouldMaterial) {
        return new MouldMaterial();
    }

    /**
     * 删除MouldMaterial
     */
    @Override
    public void delete(@RequestParam("id") Long id, @RequestParam("materialCode") String materialCode, @RequestParam("mouldCode") String mouldCode) {
        return;
    }
}
